package Rounter

import (
	"github.com/gin-gonic/gin"
	a "goShopping/superShopping/superShopping/Controller"
	"goShopping/superShopping/superShopping/Middelware"
)

func InitGin(){
	r:=gin.Default()
	r.Use(Middelware.Cors)
	r.POST("/login",a.Login)
	r.POST("/register",a.CreateUser)
	//r.Use(Middelware.JWTAuth())
	r.GET("/getPwdByName",a.GetUserByPwd)
	r.GET("/list",a.UserListController)
	r.GET("/alipay", a.PayUrl)
	r.GET("/callback", a.Callback)
	r.POST("/notify", a.Notify)
	r.Run()

}
